package Test_1108;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */
public class CardDemo {
    //四种花色
    public String[] suits={"♣","♥","♦","♠"};
    public List<Card> buyCard(){
        List<Card> cardList=new ArrayList<>();
        for (int i = 1; i <= 13; i++) {
            //cardList:放所有牌
            for (int j = 0; j < 4; j++) {
                //定义每一张牌的大小以及花色
                Card card=new Card(i,suits[j]);
                //将每张牌放到这幅牌中
                cardList.add(card);
            }
        }
       return  cardList;
    }
}
